Optimal. Leaf size=172 \[ -\frac {2 a^3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{b^3 d (a+b)}+\frac {2 \left (3 a^2+b^2\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 b^3 d}-\frac {2 a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b^2 d}+\frac {2 \sin (c+d x)}{3 b d \sqrt {\sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.39, antiderivative size = 172, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 9, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.391, Rules used = {3238, 3853, 4106, 3849, 2805, 3787, 3771, 2639, 2641} \[ \frac {2 \left (3 a^2+b^2\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 b^3 d}-\frac {2 a^3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{b^3 d (a+b)}-\frac {2 a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b^2 d}+\frac {2 \sin (c+d x)}{3 b d \sqrt {\sec (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 2805
Rule 3238
Rule 3771
Rule 3787
Rule 3849
Rule 3853
Rule 4106
Rubi steps
\begin {align*} \int \frac {1}{(a+b \cos (c+d x)) \sec ^{\frac {5}{2}}(c+d x)} \, dx &=\int \frac {1}{\sec ^{\frac {3}{2}}(c+d x) (b+a \sec (c+d x))} \, dx\\ &=\frac {2 \sin (c+d x)}{3 b d \sqrt {\sec (c+d x)}}+\frac {2 \int \frac {-\frac {3 a}{2}+\frac {1}{2} b \sec (c+d x)+\frac {1}{2} a \sec ^2(c+d x)}{\sqrt {\sec (c+d x)} (b+a \sec (c+d x))} \, dx}{3 b}\\ &=\frac {2 \sin (c+d x)}{3 b d \sqrt {\sec (c+d x)}}+\frac {2 \int \frac {-\frac {3 a b}{2}-\left (-\frac {3 a^2}{2}-\frac {b^2}{2}\right ) \sec (c+d x)}{\sqrt {\sec (c+d x)}} \, dx}{3 b^3}-\frac {a^3 \int \frac {\sec ^{\frac {3}{2}}(c+d x)}{b+a \sec (c+d x)} \, dx}{b^3}\\ &=\frac {2 \sin (c+d x)}{3 b d \sqrt {\sec (c+d x)}}-\frac {a \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx}{b^2}+\frac {\left (3 a^2+b^2\right ) \int \sqrt {\sec (c+d x)} \, dx}{3 b^3}-\frac {\left (a^3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} (a+b \cos (c+d x))} \, dx}{b^3}\\ &=-\frac {2 a^3 \sqrt {\cos (c+d x)} \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{b^3 (a+b) d}+\frac {2 \sin (c+d x)}{3 b d \sqrt {\sec (c+d x)}}-\frac {\left (a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx}{b^2}+\frac {\left (\left (3 a^2+b^2\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{3 b^3}\\ &=-\frac {2 a \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{b^2 d}+\frac {2 \left (3 a^2+b^2\right ) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{3 b^3 d}-\frac {2 a^3 \sqrt {\cos (c+d x)} \Pi \left (\frac {2 b}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{b^3 (a+b) d}+\frac {2 \sin (c+d x)}{3 b d \sqrt {\sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 6.79, size = 196, normalized size = 1.14 \[ -\frac {\cot (c+d x) \left (-12 a^2 \sqrt {-\tan ^2(c+d x)} \Pi \left (-\frac {a}{b};\left .\sin ^{-1}\left (\sqrt {\sec (c+d x)}\right )\right |-1\right )+6 a b \sec ^{\frac {3}{2}}(c+d x)-6 a b \cos (2 (c+d x)) \sec ^{\frac {3}{2}}(c+d x)+4 b (3 a-b) \sqrt {-\tan ^2(c+d x)} F\left (\left .\sin ^{-1}\left (\sqrt {\sec (c+d x)}\right )\right |-1\right )-12 a b \sqrt {-\tan ^2(c+d x)} E\left (\left .\sin ^{-1}\left (\sqrt {\sec (c+d x)}\right )\right |-1\right )-b^2 \sqrt {\sec (c+d x)}+b^2 \cos (3 (c+d x)) \sec ^{\frac {3}{2}}(c+d x)\right )}{6 b^3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b \cos \left (d x + c\right ) + a\right )} \sec \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 1.03, size = 516, normalized size = 3.00 \[ -\frac {2 \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (\left (4 b^{2} a -4 b^{3}\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (-2 b^{2} a +2 b^{3}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+3 a^{3} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-3 a^{2} b \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+b^{2} a \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-b^{3} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+3 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) a^{2} b -3 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) a \,b^{2}-3 a^{3} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticPi \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), -\frac {2 b}{a -b}, \sqrt {2}\right )\right )}{3 b^{3} \left (a -b \right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (b \cos \left (d x + c\right ) + a\right )} \sec \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,\left (a+b\,\cos \left (c+d\,x\right )\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________